package com.xydtech.ecard.ecard.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 营销任务执行记录对象 data_sem_execute_record_list
 *
 * @author JHON
 * @date 2022-05-06
 */
public class EcardApiDataSemExecuteRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;
    /** 客户证件号 */
    private String cardNum;

    /** 营销方式            1-短信            2-电话            3-面见            4-二维码 */
    @Excel(name = "营销方式            1-短信            2-电话            3-面见            4-二维码")
    private String semWay;

    /** 营销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "营销时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date semTime;

    /** 营销结果            1-成功            2-无意向            3-后续跟进 */
    @Excel(name = "营销结果            1-成功            2-无意向            3-后续跟进")
    private String semResult;

    /** 跟进时间            营销结果为3-后续跟进使用 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "跟进时间            营销结果为3-后续跟进使用", width = 30, dateFormat = "yyyy-MM-dd")
    private Date followTime;

    /** 营销数量 */
    @Excel(name = "营销数量")
    private Long semNumbers;

    /** 备注 */
    @Excel(name = "备注")
    private String semMemo;

    /** 营销人 */
    private Long userId;

    /** 营销人员工号 */
    private String userCode;

    @Excel(name = "营销人")
    private String userName;

    /** 客户标签 */
    private String custTitle;

    public String getCustTitle() {
        return custTitle;
    }

    public void setCustTitle(String custTitle) {
        this.custTitle = custTitle;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }


    public void setSemWay(String semWay) {
        this.semWay = semWay;
    }

    public String getSemWay() {
        return semWay;
    }

    public void setSemTime(Date semTime) {
        this.semTime = semTime;
    }

    public Date getSemTime() {
        return semTime;
    }

    public void setSemResult(String semResult) {
        this.semResult = semResult;
    }

    public String getSemResult() {
        return semResult;
    }

    public void setFollowTime(Date followTime) {
        this.followTime = followTime;
    }

    public Date getFollowTime() {
        return followTime;
    }

    public void setSemNumbers(Long semNumbers) {
        this.semNumbers = semNumbers;
    }

    public Long getSemNumbers() {
        return semNumbers;
    }

    public void setSemMemo(String semMemo) {
        this.semMemo = semMemo;
    }

    public String getSemMemo() {
        return semMemo;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("semWay", getSemWay())
                .append("semTime", getSemTime())
                .append("semResult", getSemResult())
                .append("followTime", getFollowTime())
                .append("semNumbers", getSemNumbers())
                .append("semMemo", getSemMemo())
                .append("userId", getUserId())
                .toString();
    }
}
